#include "fcntl.h"
#include "unistd.h"
#include "stdio.h"
#include "errno.h"
#include "string.h"
int main(int argc, char const *argv[])
{

    // 关闭 标准输入
    close(STDIN_FILENO);
    open("test/sys_call_std_io.c", O_RDONLY);

    char c;
    read(STDIN_FILENO, &c, 1);

    close(STDOUT_FILENO);
    open("test/abc.txt", O_RDWR | O_CREAT, 0666);
    //open("/dev/null", O_RDWR | O_CREAT, 0666);
    printf("read: %c\n", c);



    return 0;
}

// open close write read
